#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<math.h>
void  print_multiply_table(int n)
{
    scanf("%d", &n);
    for (int i = 1; i <= n; i++)
    {
        for (int j = 1; j <= i; j++)
        {
            printf("%2d*%2d=%2d",i,j, i * j);
        }
        printf("\n");
    }
}
int main()
{
    int n = 0, m = 0;
    print_multiply_table(n);
    return 0;
}